package com.jason.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jason.entity.SysMenu;
import com.jason.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sj
 * @since 2018-04-25
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<SysPermission> selectPermissionsByUser(@Param("userId") Long userId);

    List<SysPermission> selectAllPermissionsList();

    List<SysMenu> selectMenusByUser(@Param("userId") Long userId);

}
